from django.contrib import admin
from eurobet.app.models import Team, Game, Prediction, UserProfile
    
class TeamAdmin(admin.ModelAdmin):
    list_display = ('team', )

class GameAdmin(admin.ModelAdmin):
    list_display = ('date', 'home_team', 'guest_team', 'is_completed', 'yellow_cards', 'red_cards',)
    
class UserProfileAdmin(admin.ModelAdmin):
    list_display = ('user', 'predicted_yellow_cards', 'predicted_red_cards', )
    
class PredictionAdmin(admin.ModelAdmin):
    list_display = ('user', 'game', 'home_team_bet', 'guest_team_bet',)
  
admin.site.register(Team, TeamAdmin)
admin.site.register(Game, GameAdmin)
admin.site.register(UserProfile, UserProfileAdmin)
admin.site.register(Prediction, PredictionAdmin)
